//引用三个函数
import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
    {
        path: "/",
        name: "Add",
        component: () => import('../views/Add.vue')
    },
    {
        path: "/Show",
        name: "Show",
        component: () => import('../views/Show.vue')
    },
    {
        path: "/Update/:F_Id",
        name: "Update",
        component: () => import('../views/Update.vue')
    }
]

const router = createRouter({
    //路由模式
    history: createWebHistory(),
    //存放路由信息
    routes
})
//导出路由
export default router